package annotate;


import annotate.Controller.UserController;
import annotate.utils.CacheUtils;
import org.junit.jupiter.api.Test;

public class TestCache {
    @Test
   public void  cacheTest(){
    UserController userController = new UserController();
    Object user1 = CacheUtils.invokeMethod(userController,"getUserById",1);
    Object user2 = CacheUtils.invokeMethod(userController,"getUserById",1);
       System.out.println(user1);
       System.out.println(user2);
   }

}
